package com.general.campus.servlet;

import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @description: BizServlet
 * @author: general
 * @version: 1.0
 * @create: 2021-06-12 20:31
 **/
public class BizServlet  extends HttpServlet {

    @Override
    public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        PrintWriter writer = response.getWriter();
        writer.write( "Hello, this is BizServlet, "+ request.getAttribute("realContextPath"));

    }
}
